package lab02.test05;

/**
 * Created by 123 on 2017/10/15.
 */
public class Cube {
    //1属性
    int length;
    int width;
    int height;

    //2方法

    public void setValue(int height, int length, int width) {
        this.height = height;
        this.length = length;
        this.width = width;//对变量初始化

    }

    public int getVolum() {
        int volum = this.height * this.width * this.length;
        return volum;//求立方体体积
    }


    //3构造方法

}
